﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Bymed.SpineScan.WPF.Model;
using Bymed.SpineScan.WPF.Shared;
using Bymed.SpineScan.WPF.ViewModel.TestItemViewModel;
using Bymed.SpineScan.DataModel;

namespace Bymed.SpineScan.WPF.ViewModel
{
    public class AllTestItemsAndPatientInfoViewModel : AllTestResultsViewModel
    {
        /// <summary>
        /// Initializes a new instance of the AllTestItemsAndPatientInfoViewModel class.
        /// </summary>
        public AllTestItemsAndPatientInfoViewModel(IDataService dataService)
            : base(dataService) { }

        /// <summary>
        /// The <see cref="PatientBasicInfoDisplayViewModel" /> property's name.
        /// </summary>
        public const string PatientBasicInfoDisplayViewModelPropertyName = "PatientBasicInfoDisplayViewModel";

        private PatientBasicInfoDisplayViewModel _patientBasicInfoDisplayViewModel;

        /// <summary>
        /// Sets and gets the PatientBasicInfoDisplayViewModel property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public PatientBasicInfoDisplayViewModel PatientBasicInfoDisplayViewModel
        {
            get
            {
                return _patientBasicInfoDisplayViewModel;
            }

            set
            {
                if (_patientBasicInfoDisplayViewModel == value)
                {
                    return;
                }

                RaisePropertyChanging(PatientBasicInfoDisplayViewModelPropertyName);
                _patientBasicInfoDisplayViewModel = value;
                RaisePropertyChanged(PatientBasicInfoDisplayViewModelPropertyName);
            }
        }
    }
}
